package com.yenlien.traceyun.business.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * 生产计划实体类
 */
@Entity
@Table(name = "t_produce_process_plan")
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class ProcessPlan extends TraceEntity {
    @Column(name = "batchNumber", length = 30)
    private String batchNumber;     //生产批号

    @Column(name = "type", length = 20)
    private String type;            //产品类型

    @Column(name = "tradeName", length = 20)
    private String tradeName;       //品名

    @Column(name = "specification", length = 20)
    private String specification;   //规格


    @Column(name = "predict", length = 20)
    private String predict;         //预计产量

    private String spec;    // 规格的单位
    private String predictSpec;         //预计产量的单位

    @Column(name = "craft", length = 20)
    private String craft;           // 工艺

    private String technologyId;           // 工艺ID
    private String craftName;       // 工艺名

    @Column(name = "state", length = 20)
    private String state = "未生产";           //状态

    //集合
    @Transient
    private List<ProcessMaterials> list;

}
